package com.wx.service.impl;

import com.wx.dao.NavigationDao;
import com.wx.model.NavigationModel;
import com.wx.service.INavigationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class INavigationServiceImpl implements INavigationService {
    @Autowired
    NavigationDao navigationDao;

    @Override
    public List<NavigationModel> findAll() {
        List<NavigationModel> list=navigationDao.findAll();
        return list;
    }

    @Override
    public int navigationAdd(NavigationModel navigationModel) {
        return navigationDao.navigationAdd(navigationModel);
    }

    @Override
    public NavigationModel findById(NavigationModel navigationModel) {
        return navigationDao.findById(navigationModel);
    }

    @Override
    public int update(NavigationModel navigationModel) {
        return navigationDao.update(navigationModel);
    }

    @Override
    public int deleteById(NavigationModel navigationModel) {
        return navigationDao.deleteById(navigationModel);
    }
}
